import React from 'react'
import { Modal } from 'antd'

type Props = {
	visible: boolean
	onOk: () => void
	onCancel: () => void,
	children: React.ReactNode
}

const index = (props: Props) => {
	const { visible, onOk, onCancel, children } = props
	return (
		<div>
			<Modal visible={visible} onOk={ onOk } onCancel={ onCancel } title="修改">
				{ children }
			</Modal>
		</div>
	)
}

export default index